package com.wly.datapool.map
{
	public class MapPool
	{
		private var _maps:Array;
		static private var _instance:MapPool; 
		
		public function MapPool()
		{
			initMapinfo();
			_instance = this;
		}
		
		private function initMapinfo():void
		{
			var mapinfo:MapInfo;
			_maps = [];
			
			mapinfo = new MapInfo;
			mapinfo.monsterRoad  = [3,28,53,78,103,128,153,178,203,228,253,254,255,256,257,258,259,260,261,262,263,264, 239,214,189,164,165,140,115,90,65,66,67,68,69,70,71,96,121,146,171,196,221,246,271];
			//mapinfo.monsterRoad  = [3,28,29,30,31,32,57];
			mapinfo.mapImg       = new Map1;
			mapinfo.towerPostions= [39,64,89,92,93,94,95,114,117,120,123,138,139,142,145,148,163,167,170,173,188,195,213,220,229,230,231,232,233,234,235,236,237,238,245,270,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316];
			_maps.push(mapinfo);
		}
		
		static public function getInstance():MapPool
		{
			return _instance;
		}
		
		public function getMapByMapIndex(index:int):MapInfo
		{
			return 	_maps[index] as MapInfo;
		}
	}
}